summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-09-11 09:06:41 +0200
committerbunnei <bunneidev@gmail.com>2022-10-19 04:13:35 +0200
commit8d4e026d0575fe705957d6f17dc90a57f1bc0bf7 (patch)
tree3e9615be9c7a08de8bfa94263eb8cb86e8651966
parentcore: hle: kernel: k_page_table: Impl. LockForUn/MapDeviceAddressSpace, cleanup. (diff)
downloadyuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar.gz
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar.bz2
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar.lz
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar.xz
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.tar.zst
yuzu-8d4e026d0575fe705957d6f17dc90a57f1bc0bf7.zip
-rw-r--r--src/core/hle/kernel/kernel.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index d57239472..b6bbd4984 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -108,10 +108,6 @@ struct KernelCore::Impl {
next_user_process_id = KProcess::ProcessIDMin;
next_thread_id = 1;
- for (auto& core : cores) {
- core = nullptr;
- }
-
global_handle_table->Finalize();
global_handle_table.reset();
@@ -365,11 +361,6 @@ struct KernelCore::Impl {
static inline thread_local KThread* current_thread{nullptr};
KThread* GetCurrentEmuThread() {
- // If we are shutting down the kernel, none of this is relevant anymore.
- if (IsShuttingDown()) {
- return {};
- }
-
const auto thread_id = GetCurrentHostThreadID();
if (thread_id >= Core::Hardware::NUM_CPU_CORES) {
return GetHostDummyThread();